import {createRouter, createWebHistory} from 'vue-router'

const Layout = () => import('@/components/Layout/index')
const Empty = () => import('@/components/Layout/Empty')

export const routes = [
    {
        path: '/',
        hidden: true,
        redirect: '/medium/image'
    },
    {
        path: '/medium',
        name: 'medium',
        component: Layout,
        redirect: '/medium/image',
        meta: {
            title: '介质管理',
            icon: 'iconfont icon-wenjianjia'
        },
        children: [
            {
                path: 'image',
                name: 'mediumimage',
                component: () => import('../views/medium/image/index'),
                meta: {title: '图片介质管理'}
            },
            {
                path: 'video',
                name: 'mediumvideo',
                component: () => import('../views/medium/video/index'),
                meta: {title: '视频介质管理'}
            }
        ]
    },
    {
        path:'/goods/html',
        name:'html',
        hidden: true,
        component: () => import('../views/goods/html'),
    },
    /*{
        path: '/goods',
        name: 'goods',
        component: Layout,
        redirect: '/goods/index',
        meta: {
            title: '商品管理',
            breadcrumb: false,
            icon: 'iconfont icon-wenjianjia'
        },
        children: [
            {
                path: '/goods',
                hidden: true,
                name: 'goodss',
                component: Empty,
                redirect: '/goods/index',
                meta: {title: '商品列表', activeMenu: '/goods'},
                children: [
                    {
                        path: 'index',
                        name: 'goodsindex',
                        hidden: true,
                        component: () => import('../views/goods/index'),
                        meta: {
                            title: '商品列表',
                            breadcrumb: false
                        }
                    },
                    {
                        path: 'detail',
                        name: 'goodsdetail',
                        hidden: true,
                        component: () => import('../views/goods/detail'),
                        meta: {
                            title: '商品详情',
                            breadcrumb: false
                        }
                    },

                ]
            },
        ]
    },*/
    {
        path: '/medias',
        name: 'medias',
        component: Layout,
        redirect: '/medias/list/all',
        meta: {
            title: '媒资管理',
            breadcrumb: true,
            icon: 'iconfont icon-play-square'
        },
        children: [
            {
                path: 'list/all',
                name: 'mediaslistalllist',
                meta: {title: '全部'},
                component: Empty,
                children: [
                    {
                        path: '/medias/list/all',
                        name: 'mediaslistall',
                        meta: {title: '全部', breadcrumb: false},
                        component: () => import('../views/media/medialist/index'),
                    },
                    {
                        path: 'createmedia',
                        name: "mediaslistcreatemediaall",
                        hidden: true,
                        component: () => import('../views/media/media/createmedia'),
                        meta: { title: '媒资添加', activeMenu: '/medias/list/all' }
                    },
                    {
                        path: 'editmedia',
                        name: "mediaslisteditmediaall",
                        hidden: true,
                        component: () => import('../views/media/media/createmedia'),
                        meta: { title: '媒资编辑', activeMenu: '/medias/list/all' }
                    },
                    {
                        path: 'serieslist',
                        name: "mediaslistserieslistall",
                        hidden: true,
                        component: () => import('../views/media/series/index'),
                        meta: { title: '子集列表', activeMenu: '/medias/list/all' }
                    },
                    {
                        path: 'detail',
                        hidden: true,
                        redirect: '/medias/list/all/detail/index',
                        component: Empty,
                        meta: {title: '媒资详情', activeMenu: '/medias/list/all'},
                        children: [
                            {
                                path: 'index',
                                hidden: true,
                                name: 'mediaalldetail',
                                component: () => import('../views/media/media/components/MediaDetail/index'),
                                meta: {title: '媒资详情', activeMenu: '/medias/list/all', breadcrumb: false}
                            },
                            {
                                path: 'series/detail',
                                hidden: true,
                                name: 'mediaallseriesdetail',
                                component: () => import('../views/media/media/components/MediaDetail/LiveRoomSeries/SeriesInfo'),
                                meta: {title: '视频详情', activeMenu: '/medias/list/all'}
                            }
                        ]
                    }
                ]
            },
            {
                path: 'list/liveroom',
                name: 'mediaslistliveroomlist',
                meta: { title: '直播间' },
                component: Empty,
                children: [
                    {
                        path: '/medias/list/liveroom',
                        name: 'mediaslistliveroom',
                        meta: {title: '直播间', breadcrumb: false},
                        component: () => import('../views/media/medialist/index')
                    },
                    {
                        path: 'createmedia',
                        name: "mediaslistcreatemedialiveroom",
                        hidden: true,
                        component: () => import('../views/media/media/createmedia'),
                        meta: { title: '媒资添加', activeMenu: '/medias/list/liveroom' }
                    },
                    {
                        path: 'editmedia',
                        name: "mediaslisteditmedialiveroom",
                        hidden: true,
                        component: () => import('../views/media/media/createmedia'),
                        meta: { title: '媒资编辑', activeMenu: '/medias/list/liveroom' }
                    },
                    {
                        path: 'serieslist',
                        name: "mediaslistserieslistliveroom",
                        hidden: true,
                        component: () => import('../views/media/series/index'),
                        meta: { title: '子集列表', activeMenu: '/medias/list/liveroom' }
                    },
                    {
                        path: 'detail',
                        hidden: true,
                        redirect: '/medias/list/liveroom/detail/index',
                        component: Empty,
                        meta: {title: '媒资详情', activeMenu: '/medias/list/liveroom'},
                        children: [
                            {
                                path: 'index',
                                hidden: true,
                                name: 'medialiveroomdetail',
                                component: () => import('../views/media/media/components/MediaDetail/index'),
                                meta: {title: '媒资详情', activeMenu: '/medias/list/liveroom', breadcrumb: false}
                            },
                            {
                                path: 'series/detail',
                                hidden: true,
                                name: 'medialiveroomseriesdetail',
                                component: () => import('../views/media/media/components/MediaDetail/LiveRoomSeries/SeriesInfo'),
                                meta: {title: '视频详情', activeMenu: '/medias/list/liveroom'}
                            }
                        ]
                    }
                ]
            },
            {
                path: 'list/imageset',
                name: 'mediaslistimagesetlist',
                meta: { title: '图集' },
                component: Empty,
                children: [
                    {
                        path: '/medias/list/imageset',
                        name: 'mediaslistimageset',
                        meta: { title: '图集', breadcrumb: false },
                        component: () => import('../views/media/medialist/index')
                    },
                    {
                        path: 'createmedia',
                        name: "mediaslistcreatemediaimageset",
                        hidden: true,
                        component: () => import('../views/media/media/createmedia'),
                        meta: { title: '媒资添加', activeMenu: '/medias/list/imageset' }
                    },
                    {
                        path: 'editmedia',
                        name: "mediaslisteditmediaimageset",
                        hidden: true,
                        component: () => import('../views/media/media/createmedia'),
                        meta: { title: '媒资编辑', activeMenu: '/medias/list/imageset' }
                    },
                    {
                        path: 'serieslist',
                        name: "mediaslistserieslistimageset",
                        hidden: true,
                        component: () => import('../views/media/series/index'),
                        meta: { title: '子集列表', activeMenu: '/medias/list/imageset' }
                    },
                    {
                        path: 'detail',
                        hidden: true,
                        name: 'mediaimagesetdetail',
                        component: () => import('../views/media/media/components/MediaDetail/index'),
                        meta: {title: '媒资详情', activeMenu: '/medias/list/imageset'}
                    },
                ]
            },

            {
                path: 'list/article',
                name: 'mediaslistarticlelist',
                meta: { title: '文章资讯' },
                component: Empty,
                children: [
                    {
                        path: '/medias/list/article',
                        name: 'mediaslistarticle',
                        meta: {title: '文章资讯', breadcrumb: false},
                        component: () => import('../views/media/medialist/index')
                    },
                    {
                        path: 'createmedia',
                        name: "mediaslistcreatemediaarticle",
                        hidden: true,
                        component: () => import('../views/media/media/createmedia'),
                        meta: { title: '媒资添加', activeMenu: '/medias/list/article' }
                    },
                    {
                        path: 'editmedia',
                        name: "mediaslisteditmediaarticle",
                        hidden: true,
                        component: () => import('../views/media/media/createmedia'),
                        meta: { title: '媒资编辑', activeMenu: '/medias/list/article' }
                    },
                    {
                        path: 'serieslist',
                        name: "mediaslistserieslistarticle",
                        hidden: true,
                        component: () => import('../views/media/series/index'),
                        meta: { title: '子集列表', activeMenu: '/medias/list/article' }
                    },
                    {
                        path: 'detail',
                        hidden: true,
                        name: 'mediaarticledetail',
                        component: () => import('../views/media/media/components/MediaDetail/index'),
                        meta: {title: '媒资详情', activeMenu: '/medias/list/article'}
                    }
                ]
            },
            {
                path: 'list/shortvideo',
                name: 'mediaslistshortvideolist',
                meta: { title: '短视频' },
                component: Empty,
                children: [
                    {
                        path: '/medias/list/shortvideo',
                        name: 'mediaslistshortvideo',
                        meta: { title: '短视频', breadcrumb: false },
                        component: () => import('../views/media/medialist/index')
                    },
                    {
                        path: 'createmedia',
                        name: "mediaslistcreatemediashortvideo",
                        hidden: true,
                        component: () => import('../views/media/media/createmedia'),
                        meta: { title: '媒资添加', activeMenu: '/medias/list/shortvideo' }
                    },
                    {
                        path: 'editmedia',
                        name: "mediaslisteditmediashortvideo",
                        hidden: true,
                        component: () => import('../views/media/media/createmedia'),
                        meta: { title: '媒资编辑', activeMenu: '/medias/list/shortvideo' }
                    },
                    {
                        path: 'serieslist',
                        name: "mediaslistserieslistshortvideo",
                        hidden: true,
                        component: () => import('../views/media/series/index'),
                        meta: { title: '子集列表', activeMenu: '/medias/list/shortvideo' }
                    },
                    {
                        path: 'detail',
                        hidden: true,
                        name: 'mediashortvideodetail',
                        component: () => import('../views/media/media/components/MediaDetail/index'),
                        meta: {title: '媒资详情', activeMenu: '/medias/list/shortvideo'}
                    }
                ]
            },
            {
                path: 'list/longvideo',
                name: 'mediaslistlongvideolist',
                meta: { title: '长视频' },
                component: Empty,
                children: [
                    {
                        path: '/medias/list/longvideo',
                        name: 'mediaslistlongvideo',
                        meta: { title: '长视频', breadcrumb: false },
                        component: () => import('../views/media/medialist/index')
                    },
                    {
                        path: 'createmedia',
                        name: "mediaslistcreatemedialongvideo",
                        hidden: true,
                        component: () => import('../views/media/media/createmedia'),
                        meta: { title: '媒资添加', activeMenu: '/medias/list/longvideo' }
                    },
                    {
                        path: 'editmedia',
                        name: "mediaslisteditmedialongvideo",
                        hidden: true,
                        component: () => import('../views/media/media/createmedia'),
                        meta: { title: '媒资编辑', activeMenu: '/medias/list/longvideo' }
                    },
                    {
                        path: 'serieslist',
                        name: "mediaslistserieslistlongvideo",
                        hidden: true,
                        component: () => import('../views/media/series/index'),
                        meta: { title: '子集列表', activeMenu: '/medias/list/longvideo' }
                    },
                    {
                        path: 'detail',
                        hidden: true,
                        name: 'mediaslongvideodetail',
                        component: () => import('../views/media/media/components/MediaDetail/index'),
                        meta: {title: '媒资详情', activeMenu: '/medias/list/longvideo'}
                    }

                ]
            }
        ]
    },
    {
        path: '/mediashare',
        name: 'mediashare',
        component: Layout,
        redirect: '/mediashare/get/index',
        meta: {
            title: '媒资分享管理',
            breadcrumb: true,
            icon: 'iconfont icon-play-square'
        },
        children: [
            {
                path: 'get',
                name: 'mediashareget',
                component: Empty,
                redirect: '/mediashare/get/index',
                meta: {
                    title: '接收媒资分享',
                    breadcrumb: true,
                },
                children: [
                    {
                        path: 'index',
                        name: "mediasharegetindex",
                        hidden: true,
                        component: () => import('../views/media/fromcorpmedia/index'),
                        meta: { activeMenu: '/mediashare/get' }
                    },
                    {
                        path: 'medias',
                        hidden: true,
                        name: "mediasharegetmedias",
                        component: Empty,
                        redirect: '/mediashare/get/medias/index',
                        meta: { title: '媒资列表' },
                        children: [
                            {
                                path: 'index',
                                name: "mediasharegetmediasindex",
                                hidden: true,
                                component: () => import('../views/media/fromcorpmedia/medias'),
                                meta: { activeMenu: '/mediashare/get' }
                            },
                            {
                                path: '/mediashare/get/medias/detail',
                                hidden: true,
                                component: Empty,
                                meta: { title: '媒资详情', activeMenu: '/grouplist' },
                                children: [
                                    {
                                        path: '/mediashare/get/medias/detail',
                                        hidden: true,
                                        name: 'fromcorpmediamediaddetail',
                                        component: () => import('../views/media/media/components/MediaDetail/index'),
                                        meta: { title: '媒资详情', activeMenu: '/mediashare/get', breadcrumb: false }
                                    },
                                    {
                                        path: '/mediashare/get/medias/series/detail',
                                        hidden: true,
                                        name: 'fromcorpmediaseriesdetail',
                                        component: () => import('../views/media/media/components/MediaDetail/LiveRoomSeries/SeriesInfo'),
                                        meta: { title: '视频详情', activeMenu: '/mediashare/get' }
                                    }
                                ]
                            }
                        ]
                    },
                ]
            },
            {
                path: 'share',
                name: 'mediashareshare',
                component: Empty,
                redirect: '/mediashare/share/index',
                meta: {
                    title: '发送媒资分享',
                    breadcrumb: true,
                },
                children: [
                    {
                        path: 'index',
                        name: "mediashareshareindex",
                        hidden: true,
                        component: () => import('../views/media/mediashare/index'),
                        meta: { activeMenu: '/mediashare/share' }
                    },
                    {
                        path: 'medias',
                        hidden: true,
                        name: "mediasharesharemedias",
                        component: Empty,
                        redirect: '/mediashare/share/medias/index',
                        meta: { title: '媒资列表' },
                        children: [
                            {
                                path: 'index',
                                name: "mediasharesharemediasindex",
                                hidden: true,
                                component: () => import('../views/media/mediashare/medias'),
                                meta: { activeMenu: '/mediashare/share' }
                            },
                            {
                                path: '/mediashare/share/medias/detail',
                                hidden: true,
                                component: Empty,
                                meta: { title: '媒资详情' },
                                children: [
                                    {
                                        path: '/mediashare/share/medias/detail',
                                        hidden: true,
                                        name: 'mediasharesharemediasdetail',
                                        component: () => import('../views/media/media/components/MediaDetail/index'),
                                        meta: { title: '媒资详情', activeMenu: '/mediashare/share', breadcrumb: false }
                                    },
                                    {
                                        path: '/mediashare/share/medias/series/detail',
                                        hidden: true,
                                        name: 'mediasharesharemediasseriesdetail',
                                        component: () => import('../views/media/media/components/MediaDetail/LiveRoomSeries/SeriesInfo'),
                                        meta: { title: '视频详情', activeMenu: '/mediashare/share' }
                                    }
                                ]
                            }
                        ]
                    },
                ]
            },
        ]
    },
    {
        path: '/grouplist',
        name: 'grouplist',
        component: Layout,
        redirect: '/grouplist/index',
        meta: {
            title: '部门媒资',
            breadcrumb: false,
            icon: 'iconfont icon-play-square'
        },
        children: [
            {
                path: '/grouplist',
                hidden: true,
                component: Empty,
                redirect: '/grouplist/index',
                meta: {title: '媒资部门列表'},
                children: [
                    {
                        path: 'index',
                        hidden: true,
                        name: 'groupindex',
                        component: () => import('../views/media/grouplist/index'),
                        meta: {activeMenu: '/grouplist'}
                    },
                    /*
                    {
                        path: '/fromcorpmedia',
                        name: 'mediaget',
                        redirect: '/fromcorpmedia/index',
                        hidden: true,
                        component: Empty,
                        meta: {title: '来自合作企业媒资列表'},
                        children: [
                            {
                                path: 'index',
                                name: "fromcorpmedia",
                                hidden: true,
                                component: () => import('../views/media/media/fromcorpmedia'),
                                meta: {activeMenu: '/grouplist'}
                            },
                            {
                                path: '/fromcorpmedia/media/detail',
                                hidden: true,
                                component: Empty,
                                meta: {title: '媒资详情', activeMenu: '/grouplist'},
                                children: [
                                    {
                                        path: '/fromcorpmedia/media/detail',
                                        hidden: true,
                                        name: 'fromcorpmediamediaddetail',
                                        component: () => import('../views/media/media/components/MediaDetail/index'),
                                        meta: {title: '媒资详情', activeMenu: '/grouplist', breadcrumb: false}
                                    },
                                    {
                                        path: '/fromcorpmedia/media/series/detail',
                                        hidden: true,
                                        name: 'fromcorpmediaseriesdetail',
                                        component: () => import('../views/media/media/components/MediaDetail/LiveRoomSeries/SeriesInfo'),
                                        meta: {title: '视频详情', activeMenu: '/grouplist'}
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        path: '/mediashare',
                        name: 'mediashare',
                        redirect: '/mediashare/index',
                        hidden: true,
                        component: Empty,
                        meta: {title: '对外分享媒资列表'},
                        children: [
                            {
                                path: 'index',
                                name: "mediashareindex",
                                hidden: true,
                                component: () => import('../views/media/media/mediashare'),
                                meta: {activeMenu: '/grouplist'}
                            },
                            {
                                path: '/mediashare/media/detail',
                                hidden: true,
                                component: Empty,
                                meta: {title: '媒资详情'},
                                children: [
                                    {
                                        path: '/mediashare/media/detail',
                                        hidden: true,
                                        name: 'mediasharemediadetail',
                                        component: () => import('../views/media/media/components/MediaDetail/index'),
                                        meta: {title: '媒资详情', activeMenu: '/grouplist', breadcrumb: false}
                                    },
                                    {
                                        path: '/mediashare/media/series/detail',
                                        hidden: true,
                                        name: 'mediashareseriesdetail',
                                        component: () => import('../views/media/media/components/MediaDetail/LiveRoomSeries/SeriesInfo'),
                                        meta: {title: '视频详情', activeMenu: '/grouplist'}
                                    }
                                ]
                            }
                        ]
                    },
                    */
                    {
                        path: '/medialist',
                        name: 'media',
                        redirect: '/medialist/index',
                        hidden: true,
                        component: Empty,
                        meta: {title: '媒资列表'},
                        children: [
                            {
                                path: 'index',
                                name: "medialist",
                                hidden: true,
                                component: () => import('../views/media/media/index'),
                                meta: {activeMenu: '/grouplist'}
                            },
                            {
                                path: '/media/detail',
                                name: 'mediadetail',
                                redirect: '/media/detail/index',
                                hidden: true,
                                component: Empty,
                                meta: {title: '媒资详情', breadcrumb: false},
                                children: [
                                    {
                                        path: '/media/detail/index',
                                        hidden: true,
                                        component: Empty,
                                        meta: {title: "媒资详情", activeMenu: '/grouplist'},
                                        children: [
                                            {
                                                path: '/media/detail/index',
                                                name: 'mediaindexdetail',
                                                hidden: true,
                                                component: () => import('../views/media/media/components/MediaDetail/index'),
                                                meta: {title: '媒资详情', activeMenu: '/grouplist', breadcrumb: false}
                                            },
                                            {
                                                path: '/media/series/detail',
                                                hidden: true,
                                                name: 'seriesdetail',
                                                component: () => import('../views/media/media/components/MediaDetail/LiveRoomSeries/SeriesInfo'),
                                                meta: {title: '视频详情', activeMenu: '/grouplist'}
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                path: '/createmedia',
                                name: "createmedia",
                                hidden: true,
                                component: () => import('../views/media/media/createmedia'),
                                meta: {title: '媒资添加', activeMenu: '/grouplist'}
                            },
                            {
                                path: '/editmedia',
                                name: "editmedia",
                                hidden: true,
                                component: () => import('../views/media/media/createmedia'),
                                meta: {title: '媒资编辑', activeMenu: '/grouplist'}
                            },
                            {
                                path: '/serieslist',
                                name: "serieslist",
                                hidden: true,
                                component: () => import('../views/media/series/index'),
                                meta: {title: '子集列表', activeMenu: '/grouplist'}
                            },
                        ]
                    },
                ]
            },

        ]
    },
    {
        path: '/package',
        name: 'package',
        component: Layout,
        redirect: '/package/index',
        meta: {
            title: '内容包管理',
            breadcrumb: false,
            icon: 'iconfont icon-wenjianjia'
        },
        children: [
            {
                path: '/package',
                hidden: true,
                component: Empty,
                redirect: '/package/index',
                meta: {title: '内容包列表', activeMenu: '/package'},
                children: [
                    {
                        path: 'index',
                        name: 'package',
                        hidden: true,
                        component: () => import('../views/package/index'),
                        meta: {
                            title: '内容包列表',
                            breadcrumb: false,
                        }
                    },
                    {
                        path: 'content',
                        name: 'packagecontent',
                        redirect: '/package/content/index',
                        hidden: true,
                        component: Empty,
                        meta: {title: '内容包内容'},
                        children: [
                            {
                                path: 'index',
                                name: 'packagemedia',
                                hidden: true,
                                component: () => import('../views/package/list/content'),
                                meta: {title: '内容包内容', breadcrumb: false, activeMenu: '/package'}
                            },
                            {
                                path: 'mediadetail',
                                name: 'packagemediadetail',
                                hidden: true,
                                component: () => import('../views/media/media/components/MediaDetail/index'),
                                meta: {title: '内容包媒资详情', activeMenu: '/package'}
                            }
                        ]
                    },
                    {
                        path: 'contentshare',
                        name: 'packagecontentshare',
                        redirect: '/package/contentshare/index',
                        hidden: true,
                        component: Empty,
                        meta: { title: '合作企业分享内容包' },
                        children: [
                            {
                                path: 'index',
                                name: 'packagemediashare',
                                hidden: true,
                                component: () => import('../views/package/list/contentShare'),
                                meta: { title: '内容包内容', breadcrumb: false, activeMenu: '/package' }
                            }
                        ]
                    },
                    {
                        path: 'contentwrite',
                        name: 'packagecontentwrite',
                        redirect: '/package/contentwrite/index',
                        hidden: true,
                        component: Empty,
                        meta: { title: '合作企业可写入内容包' },
                        children: [
                            {
                                path: 'index',
                                name: 'packagemediawrite',
                                hidden: true,
                                component: () => import('../views/package/list/contentWrite'),
                                meta: { title: '内容包内容', breadcrumb: false, activeMenu: '/package' }
                            }
                        ]
                    },
                    {
                        path: 'contentproject',
                        name: 'packagecontentproject',
                        redirect: '/package/contentproject/index',
                        hidden: true,
                        component: Empty,
                        meta: {title: '项目内容包内容'},
                        children: [
                            {
                                path: '/package/contentproject/index',
                                hidden: true,
                                name: 'contentprojectindex',
                                component: () => import('../views/package/list/PackageProject'),
                                meta: {title: '项目内容包内容', breadcrumb: false}
                            },
                            {
                                path: '/package/contentproject/media/detail',
                                hidden: true,
                                redirect: '/package/contentproject/media/detail/index',
                                component: Empty,
                                meta: {title: '项目内容包媒资详情', activeMenu: '/package'},
                                children: [
                                    {
                                        path: '/package/contentproject/media/detail/index',
                                        hidden: true,
                                        name: 'contentprojectmediadetail',
                                        component: () => import('../views/media/media/components/MediaDetail/index'),
                                        meta: {title: '项目内容包媒资详情', breadcrumb: false}
                                    },
                                    {
                                        path: '/package/contentproject/media/series/detail',
                                        hidden: true,
                                        name: 'contentprojectseriesdetail',
                                        component: () => import('../views/media/media/components/MediaDetail/LiveRoomSeries/SeriesInfo'),
                                        meta: {title: '项目内容包视频详情', activeMenu: '/package'}
                                    }
                                ]
                            }
                        ]
                    }
                ]
            },
        ]
    },
    {
        path: '/review',
        name: 'review',
        component: Layout,
        redirect: '/review/media/index',
        meta: {
            title: '媒资审核管理',
            icon: 'iconfont icon-Basic_connect'
        },
        children: [
            {
                path: 'media',
                component: Empty,
                meta: {title: '内容集审核'},
                redirect: '/review/media/index',
                children: [
                    {
                        path: 'index',
                        component: () => import('../views/review/media/index'),
                        name: 'reviewname',
                        meta: {title: '内容集审核', breadcrumb: false}
                    },
                    {
                        path: 'detail',
                        name: 'reviewmediadetail',
                        hidden: true,
                        component: () => import('../views/media/media/components/MediaDetail/index'),
                        meta: {title: '媒资详情', activeMenu: '/review/media/index'}
                    },
                ]
            },

            {
                path: 'series',
                component: () => import('../views/review/series/index'),
                name: 'reviewseries',
                meta: {title: '子集审核'}
            }
        ]
    },
    {
        path: '/contentprovider',
        component: Layout,
        name: 'contentprovider',
        redirect: '/contentprovider/index',
        meta: {title: '内容提供方', icon: 'iconfont icon-interface'},
        children: [
            {
                path: 'index',
                component: () => import('../views/contentprovider/index'),
                // hidden: true,
                name: 'contentproviderindex',
                meta: {title: '内容提供方列表', breadcrumb: false}
            },
            {
                path: 'task',
                component: () => import('../views/contentprovider/task'),
                // hidden: true,
                name: 'contentprovidertask',
                meta: {title: '内容方任务列表'}
            }
        ]
    },
    {
        path: '/constant',
        component: Layout,
        name: 'constant',
        redirect: '/constant/category',
        meta: {title: '常量管理', icon: 'iconfont icon-setting'},
        children: [
            {
                path: 'category',
                redirect: '/constant/category/index',
                component: Empty,
                meta: {title: '分类管理'},
                children: [
                    {
                        path: 'index',
                        name: 'categoryindex',
                        component: () => import('../views/constant/category/index'),
                        meta: {title: '分类管理', breadcrumb: false}
                    },
                    {
                        path: 'subcate',
                        component: () => import('../views/constant/category/SubCate'),
                        hidden: true,
                        name: 'subcategory',
                        meta: {title: '二级分类管理', activeMenu: '/constant/category/index'}
                    }
                ]
            },
            {
                path: 'person',
                name: 'constantperson',
                component: () => import('../views/constant/person/index'),
                meta: {title: '人物管理'}
            },
            {
                path: 'tag',
                name: 'constanttag',
                component: () => import('../views/constant/tag/index'),
                meta: {title: '标签管理'}
            },
            {
                path: 'language',
                name: 'constantlanguage',
                component: () => import('../views/constant/language/index'),
                meta: {title: '语言管理'}
            },
            {
                path: 'area',
                name: 'constantarea',
                component: () => import('../views/constant/area/index'),
                meta: {title: '地区管理'}
            }
        ]
    }
]

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes
})

export default router
